﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>QF site</title>
    <style type="text/css">
        #logo
        {
            height: 80px;
            margin: auto;
            background: url('images/logo.png') no-repeat center center;
            border-bottom:dashed 1px #dcdcdc;
        }
        #login
        {
            margin-top: 20px;
            margin-right: auto;
            margin-left: auto;
            width:250px;
            font-size:12px;
            color:#808080;
        }
        #copyright
        {
            font: 12px Arial,Helvetica,sans-serif;
            color: #dddddd;
            text-align: center;
            margin-top: 50px;
            padding: 10px 0px;
        }
        input.loginTxt {width:170px; }
    </style>
    <script src="scripts/jquery-1.5.1.min.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function(){
            $("#UserName").focus();

            $("input[name='UserPwd']").keydown(function (e) {
                if (e.which == 13)
                    MySubmit();
            });
        });
        function MySubmit() {
            if ($("#UserName").val().length == 0) {
                alert("用户名不能为空!");
                return;
            }
            form1.submit();
        }
    </script>
</head>
<body>
    <div id="logo"></div>
    <form id="form1" runat="server">    
    <div id="login">
        <table cellpadding="5" border="0">
            <tr>
                <td align="right">
                    用户名
                </td>
                <td>
                    <input type="text" class="loginTxt" name="UserName" id="UserName" />
                </td>
            </tr>
            <tr>
                <td align="right">
                    密码
                </td>
                <td>
                    <input type="password" class="loginTxt" name="UserPwd" id="UserPwd" />
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td>
                    <input type="button" value=" 登录 " onclick="MySubmit()" />
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td style="color:#ff0000;"><%=tip%>
                </td>
            </tr>
        </table>
    </div>
    <div id="copyright">
        &copy; 2010 - 2011 QingFeng Inc, all rights reserved
    </div>
    </form>
</body>
</html>
